<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">


<h:head>
	<title>Results</title>
</h:head>
<h:body>
	<p:layoutUnit id="top" position="north" size="15%">
		<p:toolbar>
			<p:toolbarGroup align="left">
                	<h3><h:link outcome="home.html" value="TravelDream" /></h3>
                	</p:toolbarGroup>
		</p:toolbar>
	</p:layoutUnit>


	<h:form id="formBP" rendered="#{searchBean.renderBasePackage}">

		<p:dataTable id="filteredListBP" var="BasePackageDTO"
			value="#{searchBean.filteredListBP}">

			<p:column headerText="Departure Location" style="width:24%">
				<h:outputText value="#{BasePackageDTO.depLocation}" />
			</p:column>

			<p:column headerText="Arrival Location" style="width:24%">
				<h:outputText value="#{BasePackageDTO.arrLocation}" />
			</p:column>

			<p:column headerText="Departure date" style="width:24%">
				<h:outputText value="#{BasePackageDTO.depDate}" />
			</p:column>
			
			<p:column headerText="Return date" style="width:24%">
				<h:outputText value="#{BasePackageDTO.retDate}" />
			</p:column>
			<p:column width="10%">
				<p:commandButton  icon="ui-icon-search"
					title="View details" action="#{savedPackageBean.selectionBPUnlogged()}">
				<f:setPropertyActionListener value="#{BasePackageDTO}"
						target="#{savedPackageBean.basePackage}" />
				</p:commandButton>
			</p:column>
		</p:dataTable>
	</h:form>



</h:body>
</html>